import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { OldageProductNotRunningComponent } from './not-running/not-running.component';
import { OldageProductRunningComponent } from './running/running.component';
import { OldageProductStopComponent } from './stop/stop.component';
import { OldageProductListRoutingModule } from './oldage-product-list-routing.module';
import { AppPaginationModule } from "../../../widgets/pagination/pagination.module";
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from '../../../../assets/angularx-flatpickr';
import { AreaDataCnModule } from "../../../widgets/area-data-cn/area-data-cn.module";

export function flatpickrFactory() {
    return flatpickr;
}

@NgModule({
    imports: [
        CommonModule,
        OldageProductListRoutingModule,
        AppPaginationModule,
        FormsModule,
        AreaDataCnModule,
        FlatpickrModule.forRoot({
            provide: FLATPICKR,
            useFactory: flatpickrFactory
        })
    ],
    declarations: [
        OldageProductNotRunningComponent,
        OldageProductRunningComponent,
        OldageProductStopComponent
    ]
})
export class OldageProductListModule { }
